\chapter{My First Chapter}

Here is how you can do footnotes\footnote{This is a footnote!}.
You can easy refer to glossary items like \gls{glos:Infotronik} and can have URL's in footnotes too\footnote{\url{{http://www.hslu.ch}}}.
Using abbreviations is easy too: as shown in \gls{INTRO}.

\section{Figures}
Figure \ref{fig:RS232_Tester} shows a handy and inexpensive piece of hardware that allows you to test which signals are which in your serial interfaces.
\begin{figure}[ht]
	\centering
%	\includegraphics[width=0.3\textwidth]{fig/RS323_Tester_MFG_AB_934.jpg}
	\caption{RS-232-C Tester\cite{DigiKeyRS232}}
	\label{fig:RS232_Tester}
\end{figure}

\section{Symbols}
Assume \textit{n,m} are \gls{symb:ElementOf} \gls{symb:NaturalNumber}.

\section{Enumerations}
\begin{itemize}
	\item What are the locations and the number of bytes of \gls{RAM} and \gls{ROM} in your microcontroller?
	\item How does the C program address a specific memory or \gls{I/O} control register location?
	\item What data types does your compiler\index{compiler} support and how are they stored in memory?
\end{itemize}

\section{Listings}
\begin{lstlisting}
void StaticVolatile(void) {
  static char i;
  static char j;

  j = i;
}
\end{lstlisting}

Listing from file:
%\lstinputlisting{./src/example.c}

\section{Graphs}
\begin{figure}[ht]
\begin{center}
\begin{tikzpicture}[node distance = 2cm, auto]
  %place nodes
  \node [block] (start) {start};
  \node [block, below of=start] (flag) {check flag};
  \node [decision, below of=flag] (decide) {ready?};
  \node [block, below of=decide, node distance=3cm] (read) {read};
  % Draw edges
  \path [line] (start) -- (flag);
  \path [line] (flag) -- (decide);
  \path [line] (decide) -- node {yes}(read);
  %\path [line] (decide) -- -| node [near start] {yes} (read);
  \path [line] (decide) -- +(3,0) -- +(3,3) -- node {no} (flag);
  %label
\end{tikzpicture}
\caption{Gadfly Loop}
\label{fig:GadflyLoop}
\end{center}
\end{figure}

\section{Equations}

\begin{equation}
m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
\end{equation}

\begin{equation}
	Dynamic Range = \frac{V_{MAX}}{V_{NOISE}}
  \label{eqn:DynamicRange}
\end{equation}

\section{Large Table}
\begin{table}[ht]
	\centering
	\begin{tabulary}{\textwidth}{ | c | c | c | L |}
	\hline
  DE-9 & DB-25 & Signal & Purpose\\
	\hline
	   & 1 & PG  & \emph{Protective Ground}. This is usually the shield in a shielded cable. It is designed to be connected to the equipment frame and may be connected to external grounds. \\ \hline
	 3 & 2 & TxD & \emph{Transmitted Data}. \textbf{Sourced} by \gls{DTE} and \textbf{received} by \gls{DCE}. Data terminal equipment cannot send unless \gls{RTS}, \gls{CTS}, DSR and DTR are asserted.\\ \hline
	 2 & 3 & RxD & \emph{Received Data}. \textbf{Received} by the \gls{DTE}, \textbf{sourced} by \gls{DCE}.\\ \hline
	 7 & 4 & RTS & \emph{Request to Send}. \textbf{Sourced} by \gls{DTE}, \textbf{received} by \gls{DCE}. \gls{RTS} is asserted by the \gls{DTE} when it wants to send data. The \gls{DCE} responds by asserting \gls{CTS}.\\ \hline
	\hline
	\end{tabulary}
	\caption[RS-232-C Signal Definitions]{Signal Definitions}
	\label{tab:RS232SignalDefinitions}
\end{table}
